home *** CD-ROM | disk | FTP | other *** search
- Procedure pursuit
- Use pcpur
- set index to pcpur
- set format to pcpur
- set bell off
- set escape off
- set safety off
- SET TALK OFF
- SET MARGIN TO 5
- DO WHILE .T.
- CLEAR
- ?' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'
- ?' * PC-Pursuit BBS List *'
- ?' * * * * * * * * * * * * MAIN MENU * * * * * * * * * * * * *'
- ?''
- ?' A)dd to list or Edit L)ist or Print'
- ?' I)ndex (sort) S)earch'
- ?' Q)uit Z) printer setup'
- ?' '
- ?' '
- ?' Copyright 1987, Maggard Technologies and Kevin Maggard'
- ?' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'
- ?
- ?
- ?
- ?
- WAIT ' OPTION?--> ' to opt
- if upper(opt)<>'Q'
- ?'Please wait, performing task'
- endif
- do case
- case upper(opt)='A'
- append
- case upper(opt)='L'
- do lbl
- case upper(opt)='Q'
- wait 'quit, are you sure?' to opt2
- if upper(opt2)='Y'
- quit
- else endcase opt
- endif
- case upper(opt)='I'
- do ndex2
- case upper(opt)='S'
- do serch2
- case upper(opt)='Z'
- close databases
- close index
- close format
- do epson2
- endcase opt
- enddo
- return
- procedure ndex2
- do while .T.
- clear
- ?'* * * * * * * * * * * * * Index menu * * * * * * * * * * * * *'
- ?
- ?' Index on what field? 1) Area Code'
- ?' 2) Phone Number'
- ?' 3) Name'
- ?' 4) Note1'
- ?' 5) Note2'
- ?
- ?' L) to display list Q) to return to main menu'
- ?'* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'
- wait 'Field #?--> ' to fld
- ?'Please wait...'
- do case
- case fld='1'
- index on acode to pcpur
- case fld='2'
- index on phone to pcpur
- case fld='3'
- index on upper(name) to pcpur
- case fld='4'
- index on note1 to pcpur
- case fld='5'
- index on note2 to pcpur
- case upper(fld)='L'
- ?
- ?
- ?
- label form pcpur
- wait
- case upper(fld)='Q'
- return
- endcase
- enddo
- return
- procedure serch2
- do while .T.
- clear
- ?'* * * * * * * * * * * * Search menu * * * * * * * * * * * * *'
- ?
- ?' Search on what field? 1) Area Code'
- ?' 2) Phone Number'
- ?' 3) BBS Name'
- ?' 4) Note1'
- ?' 5) Note2'
- ?' Q) to return to main menu'
- ?'* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'
- wait 'Search field #? ' to fld
- do case
- case fld='1'
- accept'Area Code to search for?' to ac
- ?
- ?
- display all for at(ac,acode)>0 off
- wait
- case fld='2'
- accept'Phone Number to search for?' to phn
- ?
- ?
- display all for at(phn,phone)>0 off
- wait
- case fld='3'
- accept'Name to search for?' to nme
- ?
- ?
- display all for at(upper(nme),upper(name))>0 off
- wait
- case fld='4'
- accept 'Note1 to search for?' to n1
- ?
- ?
- display all for at(upper(n1),upper(note1))>0 off
- wait
- case fld='5'
- accept'Note2 to search for?' to n2
- ?
- ?
- display all for at(upper(n2),upper(note2))>0 off
- wait
- case upper(fld)='Q'
- return
- endcase
- enddo
- return
- procedure lbl
- do while .T.
- clear
- ?'* * * * * * * * * * Listing and Printing * * * * * * * * * *'
- ?' Enter search parameter for each field. Hit <RETURN> for'
- ?' fields that you do not want to restrict.'
- ?' Enter 0 for Area Code, Number or name to abort'
- ?' '
- ?'* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'
- ?
- release all
- accept 'Area Code: ' to ac
- if ac='0'
- return
- endif
- accept 'Phone Number: ' to phn
- if phn='0'
- return
- endif
- accept 'Name: ' to nme
- if nme='0'
- return
- endif
- accept'Note1: ' to n1
- accept'Note2: ' to n2
- ?
- ?'Where would you like your output to go?'
- wait 'P)rinter, S)creen, or A)bort? ' to opt
-
- if Upper(opt)='A'
- return
- endif
- ?
- ? 'Selecting only the records that you wanted'
-
- ?
- delete for substr(acode,1,len(ac))<>upper(ac)
- delete for substr(phone,1,len(phn))<>phn
- if len(nme)<>0
- delete for at(upper(nme),upper(name))=0
- endif
- if len(n1)<>0
- delete for at(upper(n1),upper(note1))=0
- endif
- if len(n2)<>0
- delete for at(upper(n2),upper(note2))=0
- endif
- if upper(opt)='P'
- ?
- ?' Make sure printer is online.'
- ?
- wait
- display all for .not. deleted() to print off
- recall all for deleted()
- ?
- ?'End of Listing...'
- else
- ?
- ?
- display all for .not. deleted() off
- recall all for deleted()
- ?
- ?'End of Listing...'
- wait
- endif
- enddo
- return
- procedure epson2
- * Michael Wade COMPUSERVE 75126,2113
- * Advantage Associates, Inc. ... 3406 Fleetwood Dr... Lexington,KY.
- * June 1985... revised August 1985
- *
- SET TALK OFF
- SET EXACT ON
- STORE DATE() TO MDATE
- STORE ' ' TO check
- CLEAR
- ?'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
- ?? '~~~~~~'
- @ 2,10 SAY ' Printer Control Utility Menu (for Epson & Compats)'
- @ 4,0 SAY ' Advantage Associates Inc. Lexington,Ky.'+SPACE(30)+DTOC(mdate)
- @ 6,5 SAY '1 - Condensed ON A - Condensed OFF'
- @ 7,5 SAY '2 - Wide ON B - Wide OFF'
- @ 8,5 SAY '3 - Emphasized ON C - Emphasized OFF'
- @ 9,5 SAY '4 - Double Strike ON D - Double Strike OFF'
- @ 10,5 SAY '5 - Italic ON E - Italic OFF'
- @ 11,5 SAY '6 - Underline ON F - Underline OFF'
- @ 12,5 SAY '7 - Superscript ON G - Superscript OFF'
- @ 13,5 SAY '8 - Subscript ON H - Subscript OFF'
- @ 14,5 SAY '9 - Elite ON I - Elite OFF'
- @ 15,4 SAY '10 - Emphasized Double Strike ON J - Emphasized Double'
- ?? ' Strike OFF'
- @ 16,4 SAY '11 - Ring Bell K - Re-Set to defaults'
- @ 18,24 SAY 'X -> Exit with no changes'
- @ 21,0 SAY ' '
- ?'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
- ?? '~~~~~~'
- @ 20,20 SAY 'Please make a selection : ' GET check PICTURE '!!!'
- READ
- SET CONSOLE OFF
- SET PRINT ON
- DO CASE
- * bail out !!
- CASE check=' '.OR. check='X'
- SET PRINT OFF
- SET CONSOLE ON
- CLEAR
- use pcpur
- set index to pcpur
- return
- * compressed on
- CASE check='1'
- ? CHR(15)
- STORE 'Compressed ON' TO huh
- * compressed off
- CASE check='A'
- ? CHR(18)
- STORE 'Compressed OFF' TO huh
- * wide on
- CASE check='2'
- ? CHR(27)+CHR(87)+CHR(49)
- STORE 'Wide ON' TO huh
- * wide off
- CASE check='B'
- ? CHR(27)+CHR(87)+CHR(48)
- STORE 'Wide OFF' TO huh
- * emphasized on
- CASE check='3'
- ? CHR(27)+CHR(69)
- STORE 'Emphasized ON' TO huh
- * emphasized off
- CASE check='C'
- ? CHR(27)+CHR(70)
- STORE 'Emphasized OFF' TO huh
- * double strike on
- CASE check='4'
- ? CHR(27)+CHR(71)
- STORE 'Double Strike ON' TO huh
- * double strike off
- CASE check='D'
- ? CHR(27)+CHR(72)
- STORE 'Double Strike OFF' TO huh
- * italic on
- CASE check='5'
- ? CHR(27)+CHR(52)
- STORE 'Italics ON' TO huh
- * italic off
- CASE check='E'
- ? CHR(27)+CHR(53)
- STORE 'Italics OFF' TO huh
- * underline on
- CASE check='6'
- ? CHR(27)+"-1"
- STORE 'Underline ON' TO huh
- * underline off
- CASE check='F'
- ? CHR(27)+"-0"
- STORE 'Underline OFF' TO huh
- * superscript on
- CASE check='7'
- ? CHR(27)+CHR(83)+CHR(48)
- STORE 'Superscript ON' TO huh
- * superscript off OR subscript off
- CASE check='G'.OR. check='H'
- ? CHR(27)+CHR(84)
- STORE 'Super/Sub script OFF' TO huh
- * subscript on
- CASE check='8'
- ? CHR(27)+CHR(83)+CHR(49)
- STORE 'Subscript ON' TO huh
- * elite on
- CASE check='9'
- ? CHR(27)+CHR(77)
- STORE 'Elite ON' TO huh
- * elite off
- CASE check='I'
- ? CHR(27)+CHR(80)
- STORE 'Elite OFF' TO huh
- * ring bell
- CASE check='11'
- ? CHR(7)
- * re-set to defaults
- CASE check='K'
- ? CHR(27)+CHR(64)
- STORE 'Default' TO huh
- * emphasized + double strike on
- CASE check='10'
- ? CHR(27)+CHR(69)+CHR(27)+CHR(71)
- STORE 'Emphasized + Double Strike ON' TO huh
- * emphasized + double strike off
- CASE check='J'
- ? CHR(27)+CHR(64)
- STORE 'Default' TO huh
- ENDCASE [check]
- SET PRINT OFF
- SET CONSOLE ON
- @ 23,20 SAY "Printer's "+huh+" installed ..."
- ?? CHR(7)
- WAIT
- CLEAR
- use pcpur
- set index to pcpur
- set format to pcpur
- set bell off
- set escape off
- set safety off
- SET TALK OFF
- SET HEADING on
- SET MARGIN TO 5
- RETURN
- return
-
-
-